package com.example.skillcinema.db.apis

import okhttp3.Interceptor
import okhttp3.Request
import okhttp3.Response

class ApiKeyInterceptor : Interceptor {
    override fun intercept(chain: Interceptor.Chain): Response {
        val request: Request = chain.request().newBuilder().addHeader("X-API-KEY", API)
            .addHeader("Content-Type", "application/json").build()
        return chain.proceed(request)
    }
}